/**
 * Axelor Business Solutions
 *
 * Copyright (C) 2005-2021 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
header {
  font-weight: 600;
}

header .navbar-inner {
  background-color: #fff;
  box-shadow: none !important;
}

header .navbar .nav .dropdown-menu {
  border: 1px solid #d3d3d3;
  border-top: 1px solid #e7e7e7;
}

header .navbar .nav .dropdown-submenu > .dropdown-menu {
  margin-left: 0;
  border-top: 1px solid #d3d3d3;
}

header .navbar .nav .dropdown-menu > li > a {
  padding: 6px 25px 6px 20px;
  line-height: 20px;
}

header .navbar .nav .dropdown-submenu > a:after {
  margin-right: -15px;
}

header .navbar .nav .dropdown-submenu:hover > a:after {
  border-left-color: #fff;
}

header .navbar .nav .fa-bars,
header .navbar .dropdown-toggle .caret {
    color: #3ad08f;
}

.navbar .nav li.dropdown.open > .dropdown-toggle,
.navbar .nav li.dropdown.active > .dropdown-toggle,
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
    color: #107a4a;
}

header .navbar .nav > li > a:focus,
header .navbar .nav > li > a:hover {
    color: #3ad08f;
}

header .navbar .nav .fa-bars:hover,
header .navbar .nav .fa-bars:focus {
    color: #107a4a;
}

header .dropdown-menu > li > a:hover,
header .dropdown-menu > li > a:focus,
header .dropdown-submenu:hover > a,
header .dropdown-submenu:focus > a {
    color: #fff;
    background-color: #3ad08f;
}

.slick-header-menuitem:hover {
  color: #fff;
  background-color: #5377b1;
  background-image: none;
}
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-slider-handle.ui-state-hover {
  color: #fff !important;
  background-color: #0275d8 !important;
  background-image: none !important;
}
.ui-datepicker .ui-slider-handle.ui-state-focus,
.ui-datepicker .ui-slider-handle.ui-state-hover,
.ui-datepicker .ui-state-highlight {
  border: 1px solid #0275d8 !important
}
.ui-menu .ui-menu-item a.ui-state-focus {
  color: #262626;
  text-decoration: none;
  border-color: #f5f5f5;
  background-color: #f5f5f5;
  background-image: none;
}

.sidebar {
  background-color: #2f4050;
}

.view-tabs {
  background-color: #f3f3f4;
}

.nav-tabs-wrap {
  height: 38px;
  background-color: #fff;
  border-bottom: 1px solid #e7e7e7;
}

.nav-tabs-wrap.empty {
  display: none;
}

.nav-tabs > li {
  margin-right: -1px;
  margin-bottom: -1px;
}

.nav-tabs > li > a {
  color: #555;
  background-color: #fff;
  padding-top: 6px;
  padding-bottom: 6px;
}

.nav-tabs > li.active > a {
  color: #333;
}

.nav-tabs > li > a,
.nav-tabs > li.active > a {
  margin: 0;
  border-radius: 0;
  border: 1px solid #e7e7e7;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus,
.nav-tabs > li:hover > a {
  color: #333;
  border: 1px solid #e7e7e7;
  background-color: #fff;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border: 1px solid #e7e7e7;
  border-top: 3px solid #0275d8;
  border-bottom: 1px solid transparent;
  background-color: #fff;
  padding-top: 4px;
    border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.nav-tabs-main > li:not(.active) > a {
  border-top-color: #e7e7e7 !important;
}

.nav-tabs-main > li:not(.active) > a > i.fa {
  opacity: 0.55;
}

.nav-tabs-strip {
  height: 32px;
  background-color: #f3f3f4;
}

.nav-tabs-strip .nav-tabs {
  padding: 0 8px;
  border-bottom-color: #e7e7e7;
}

.nav-tabs-overflow .nav-tabs {
  padding: 0;
}

.nav-tabs-scroll-l,
.nav-tabs-scroll-r {
  bottom: 6px;
  margin-top: 0;
  padding-top: 8px;
  background-color: #f3f3f4;
  border-bottom: 1px solid #e7e7e7;
}

.nav-tabs-scroll-l a,
.nav-tabs-scroll-r a {
  width: 100%;
  padding-left: 3px;
}

table.form-layout .tabbable-tabs .tab-content {
  border-color: #e7e7e7;
}

.bordered,
.bordered-box {
  border-color: #e7e7e7;
}

.view-container .form-view > div[ui-view-form].has-width {
  background-color: #f3f3f4;
}

/** remove corners */
.btn,
.ui-menu,
.dropdown-menu,
.slick-header-menu,
[class*="ui-corner"] {
  border-radius: 0 !important;
}
.portlet,
.portlet-header .navbar-inner,
.portlet-body,
.portlet-content {
  border-radius: 0 !important;
}
input, button, textarea, select, fieldset, pre {
  border-radius: 0 !important;
}
.tag-select {
  border-radius: 0;
}
.tag-select .label {
  border-radius: 8px;
}
.tag-select .label {
    background-color: #0275d8;
}

.select-item .picker-icons i.fa-times {
  font-size: 12px;
  color: #ccc;
}

.select-item .picker-icons i.fa-times:hover {
  color: #333;
}

.m2o-editor-controls i.fa,
.picker-icons i.fa {
  color: #ccc;
}
.m2o-editor-controls i.fa:hover,
.picker-icons i.fa:hover {
  color: #333;
}

.progress,
.progress .bar {
  border-radius: 0 !important;
  box-shadow: none;
}

.nvd3.nv-noData {
  font-weight: 400;
  fill: #333333;
}

/* jquery fixes */
.ui-widget-header a {
  color: #0088cc;
}
.ui-dialog .ui-dialog-titlebar a {
  color: #222;
}

/* == v5 == */

.record-toolbar button,
.record-toolbar .btn {
  border: 0;
}

.record-toolbar .button-menu.open a.btn,
.record-toolbar .button-menu a.btn:hover {
  background-color: #eee;
}

.panel-layout .tag-select {
  border-top-width: 0;
  border-left-width: 0;
  border-right-width: 0;
  padding-left: 0;
}
.tag-select > .picker-icons {
  right: 0;
}

.nav-tabs-main > li.active > a.bg-red { border-top-color: #DB2828 !important; }
.nav-tabs-main > li.active > a.bg-orange { border-top-color: #F2711C !important; }
.nav-tabs-main > li.active > a.bg-yellow { border-top-color: #FBBD08 !important; }
.nav-tabs-main > li.active > a.bg-olive { border-top-color: #B5CC18 !important; }
.nav-tabs-main > li.active > a.bg-green { border-top-color: #21BA45 !important; }
.nav-tabs-main > li.active > a.bg-teal { border-top-color: #00B5AD !important; }
.nav-tabs-main > li.active > a.bg-blue { border-top-color: #2185D0 !important; }
.nav-tabs-main > li.active > a.bg-violet { border-top-color: #6435C9 !important; }
.nav-tabs-main > li.active > a.bg-purple { border-top-color: #A333C8 !important; }
.nav-tabs-main > li.active > a.bg-pink { border-top-color: #E03997 !important; }
.nav-tabs-main > li.active > a.bg-brown { border-top-color: #A5673F !important; }
.nav-tabs-main > li.active > a.bg-grey { border-top-color: #767676 !important; }
.nav-tabs-main > li.active > a.bg-black { border-top-color: #1B1C1D !important; }
.nav-tabs-main > li.active > a.bg-white { border-top-color: #F9FAFB !important; }

.panel .panel-related .panel-header,
.panel-tabs .panel-related .panel-header,
.panel .dashboard .dashlet-header,
.panel-tabs .dashboard .dashlet-header,
.panel .one2many-item > .navbar .navbar-inner,
.panel-tabs .one2many-item > .navbar .navbar-inner,
.panel .many2many-item > .navbar .navbar-inner,
.panel-tabs .many2many-item > .navbar .navbar-inner {
  border: 0;
  padding: 8px 2px;
}

.panel .one2many-item > .slickgrid,
.panel-tabs .one2many-item > .slickgrid,
.panel .many2many-item > .slickgrid,
.panel-tabs .many2many-item > .slickgrid {
  top: 34px;
}

.panel .panel-related,
.panel-tabs .panel-related,
.panel .form-item .dashlet,
.panel-tabs .form-item .dashlet {
  border: 0;
  box-shadow: none;
}

.panel .panel-related .panel-body .slickgrid,
.panel-tabs .panel-related .panel-body .slickgrid,
.panel .form-item .dashlet .dashlet-body .portlet-grid .slickgrid,
.panel-tabs .form-item .dashlet .dashlet-body .portlet-grid .slickgrid {
  border: 1px solid #ddd;
  height: calc(100% - 2px);
}

.panel-related .panel-header .icons-bar > a,
.one2many-item .navbar .icons-bar > a,
.many2many-item .navbar .icons-bar > a {
  margin-left: 16px;
}
/* == v5 == */
